<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>试卷预览</title>
    <th:block th:include="fragment_header :: header">
    </th:block>
</head>
<body>
<div th:replace="fragment_menu :: navmenu"></div>
<div class="container mt-5">
    <h1 class="mb-4">试卷预览</h1>
    <!-- 在这里显示试卷信息，例如试卷名称等 -->

    <h2>题目列表</h2>
    <ul class="list-group">
        <li th:each="question : ${questions}" class="list-group-item">
            <h4 th:text="${question.description}" class="mb-3"></h4>
            <ul class="list-group">
                <li th:each="option : ${question.options}" class="list-group-item">
                    <p class="mb-0"><strong>选项:</strong> <span th:text="${option.choice}"></span> - <span
                            th:text="${option.answer}"></span></p>
                </li>
            </ul>
        </li>
    </ul>
</div>

<div class="container mt-5">
    <a href="http://localhost:8080/landing" class="btn btn-primary">回到主页</a>
</div>

</body>
</html>
